
#pragma once

#ifndef _NOHOOK_
#include "HookWinHttp.h"

#define FUNC_testSock		gHook.testSock
#ifndef _WEBKIT_NEW
#define	FUNC_connect		gHook.s_pfnconnect
#define	FUNC_recv			gHook.s_pfnrecv
#else
#define	FUNC_connect		::connect
#define	FUNC_recv			::recv
#endif
#define	FUNC_send			gHook.s_pfnsend
#define FUNC_select			gHook.s_pfnselect
#define FUNC_shutdown		gHook.s_pfnshutdown
#define FUNC_closesocket	gHook.s_pfnclosesocket
#define FuncBitBlt			gHook.s_pfnBitBlt

#else

#define FUNC_testSock		testSock
#define	FUNC_connect		::connect
#define FUNC_shutdown		::shutdown
#define FUNC_closesocket	::closesocket
#define FUNC_select			::select
#define	FUNC_send			::send
#define	FUNC_recv			::recv
#define FuncBitBlt			::BitBlt

#endif
